package com.xiaobai.frame.entity.DTO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PageDTO {

    @Schema(description = "指定id")
    Long id;

    @Schema(description = "指定名字")
    String name;

    @Schema(description = "开始时间")
    LocalDateTime beginTime;

    @Schema(description = "结束时间")
    LocalDateTime endTime;

    @Schema(description = "创建人")
    Long createUser;

    @Schema(description = "每一页数量", requiredMode = Schema.RequiredMode.REQUIRED)
    int pageNum;

    @Schema(description = "当前页数", requiredMode = Schema.RequiredMode.REQUIRED)
    int pageCurrent;
}
